package com.mt.mtyx.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mt.mtyx.entity.sys.Region;
import com.mt.mtyx.sys.mapper.RegionMapper;
import com.mt.mtyx.sys.service.RegionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author WMT
 * @Date 2023/7/18 13:12
 */
@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements RegionService {


    @Override
    public List<Region> findRegionByKeyword(String keyword) {
        return baseMapper.selectList(new LambdaQueryWrapper<Region>().like(Region::getName, keyword));
    }
}
